<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
	<head>
		<meta charset="UTF-8">
		<title>合同审查会签单</title>
	</head>
	<style>
		*{
			padding:0;
			margin: 0;
		}
		html, body{
			height:100%;
		}
		.purchaseResult{
			height:100%;
			width:842px;
			padding:15px 0;
			margin: auto;
			position: relative;
		}
		.purchaseResult .title{
			margin:10px 0;
		}
		.purchaseResult .title p{
			text-align:center;
			line-height:30px;
			font-size:18px;
		}
		.purchaseResult table {
			position: absolute;
			z-index:10;
		}
		.purchaseResult table td{
			padding: 14px 5px;
			font-size:14px;
			min-height:31px;
			text-align:center;
			min-width: 70px;
		}
		.purchaseResult table tr td:nth-child(1){
			min-width:140px;
		}
		.purchaseResult .tips{
			font-size:12px;
		}
		.purchaseResult .declare{
			width:150px;
		}
		.purchaseResult .codeNum{
			width:12%;
		}
		.purchaseResult .referees{
			width:50px;
		}
		.purchaseResult .units{
			width:80px;
		}
		.shuiyin{
			width:100%;
			height:100%;
			position: absolute;
		}
		.shuiyin img:nth-child(1){
			position: absolute;
			top:25%;
			left:10%;
			transform: rotate(-30deg);
			width:80%;
			z-index:5;
		}
		.shuiyin img:nth-child(2){
			position: absolute;
			top:55%;
			left:10%;
			transform: rotate(-210deg);
			width:80%;
			z-index:5;
		}
		.logo{
			position: absolute;
			right: 0%;
			top:0;
			width:20%;
		}
		.advance img:nth-child(1){
			max-height: 40px;
			display: inline-block;
			vertical-align: middle;
		}
		.advance span:nth-child(2){
			display: inline-block;
			vertical-align: middle;
			margin-left:20px;
		}
		.advance span:nth-child(3){
			display: inline-block;
			vertical-align: middle;
			margin-left:20px;
		}
	</style>
<body>
		<div class="purchaseResult">
			<!--水印-->
			<div class="shuiyin">
				<img src="../../images/shuiyin.png" alt="" />
				<img src="../../images/shuiyin.png" alt="" />
			</div>
			<!--logo-->
			<img class="logo" src="../../images/logoTable.png" alt="" />
			<div class="title">
				<p>合同审查会签单</p>
			</div>
			<table border="1" cellspacing="0" cellpadding="0">
				<tr>
					<td class="declare">合同编号</td>
					<td>${requestScope.poHead.poHeadCode}</td>
					<td class="codeNum">系统编号</td>
					<td>${requestScope.poHead.projectCode}</td>
					<td class="codeNum">填报时间</td>
					<td><fmt:formatDate value="${requestScope.poHead.createdDate}" pattern="yyyy-MM-dd"/></td>
				</tr>
				<tr>
					<td class="declare">合同名称</td>
					<td colspan="3">${requestScope.poHead.poName}</td>
					<td class="codeNum">合同类别</td>
					<td>${requestScope.poCateMap[requestScope.poHead.taxPercent]}</td>
				</tr>
				<tr>
					<td class="declare">项目来源方式</td>
					<td colspan="5">${requestScope.poSourceMap[requestScope.poHead.sourceMode]}</td>
				</tr>
				<tr>
					<td class="declare">合同金额</td>
					<td>￥${requestScope.poHead.poaAmount}</td>
					<td class="declare">付款方式</td>
					<td  colspan="3">${requestScope.poHead.paymentMethod}</td>
				</tr>
				<tr>
					<td class="declare">合同单位名称</td>
					<td colspan="5" id="staffName">${requestScope.mdVendor.vendorName}</td>
				</tr>
				<tr>
					<td class="declare">合同单位地址</td>
					<td colspan="5" id="vendorAddress">${requestScope.mdVendor.vendorAddress}</td>
				</tr>
				<tr>
					<td class="declare">合同单位联系方式</td>
					<td colspan="5" id="contactTelephone">${requestScope.mdVendor.contactTelephone}</td>
				</tr>
				<tr>
					<td class="declare">合同谈判人员</td>
					<td colspan="5">${requestScope.poHead.poParticipants}</td>
				</tr>
				<c:forEach items="${requestScope.subTaskInfoList}" var="sub" varStatus="index">
					<c:if test="${sub.task_sub_name !='合同起草'}">
						<tr >
							<td class="declare">${sub.task_sub_name}意见</td>
							<td class="advance" colspan="5"> <img src="${sub.file}" alt="" /><span>${sub.staff_name}：同意</span><span>${sub.proc_time}</span></td>
						</tr>
					</c:if>
				</c:forEach>
			</table>
		</div>
</body>
</html>
